<template>
  <div>
    这个是首页
  </div>
</template>

<script setup lang='ts'>

import useUserStore from '@/store/modules/user';
import { onMounted } from 'vue';

const userStore = useUserStore();
onMounted(() => {
  // 检查用户是否已登录
  userStore.getUserInfo().then(() => {
  console.log('获取信息sucess');
  }).catch(() => {
    console.log('用户未登录或获取信息失败');
  });
});



</script>
<style scoped></style>